#bcalc-root{font-family:'Plus Jakarta Sans',Arial,sans-serif;--bc-blue:#1264bc;--bc-ink:#143251;--bc-line:#dce8f5}
#bcalc-root *{box-sizing:border-box}
#bcalc-launch{position:fixed;right:clamp(16px,2.5vw,36px);bottom:clamp(18px,3vw,36px);z-index:99980;width:66px;height:66px;border-radius:50%;border:3px solid #fff;background:linear-gradient(140deg,#278be5,#064b95);color:#fff;box-shadow:0 9px 28px #0c5a9b66;cursor:pointer;display:grid;place-items:center;transition:transform .2s}
#bcalc-launch:hover{transform:translateY(-4px) scale(1.05)}
#bcalc-launch svg{width:30px;height:30px}
#bcalc-overlay{position:fixed;inset:0;z-index:99990;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(13,37,69,.36);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#bcalc-overlay.bcalc-open{display:flex}
#bcalc-panel{width:min(100%,440px);max-height:min(92dvh,760px);overflow:auto;background:#fff;border:1px solid #dceafa;border-radius:22px;box-shadow:0 30px 90px #092d5270;padding:20px;animation:bcalc-pop .22s ease-out}
@keyframes bcalc-pop{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.bcalc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.bcalc-head h2{margin:0;color:var(--bc-ink);font-size:1.23rem;font-weight:800}.bcalc-head p{margin:4px 0 0;color:#66819b;font-size:.76rem}
#bcalc-close{width:36px;height:36px;flex-shrink:0;border:1px solid var(--bc-line);border-radius:10px;background:#f5f9ff;color:#234c75;font-size:24px;cursor:pointer}
.bcalc-screen{background:linear-gradient(130deg,#eef7ff,#f9fcff);border:1px solid #cfe3f7;border-radius:14px;padding:15px;margin-bottom:14px;text-align:right;min-height:104px;display:flex;flex-direction:column;justify-content:space-between}
#bcalc-expression{font-size:1.12rem;color:#2e567d;overflow-wrap:anywhere;min-height:25px}
#bcalc-result{font-size:1.85rem;font-weight:800;color:#103d6b;overflow-wrap:anywhere;min-height:38px}
.bcalc-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.bcalc-keys button{min-width:0;min-height:49px;border:1px solid #e1ebf5;border-radius:11px;background:#f6f9fe;color:#183b5f;font:700 .93rem inherit;font-family:inherit;font-weight:700;cursor:pointer;transition:background .15s,transform .15s}
.bcalc-keys button:hover{background:#e6f2ff;transform:translateY(-1px)}
.bcalc-keys button:focus-visible,#bcalc-launch:focus-visible,#bcalc-close:focus-visible{outline:3px solid #76bbfa;outline-offset:2px}
.bcalc-keys .bcalc-op{background:#eaf4ff;color:#075ba7}.bcalc-keys .bcalc-danger{background:#fff0f0;color:#b12b38}.bcalc-keys .bcalc-equals{background:linear-gradient(130deg,#2289e2,#07549a);color:white;border-color:transparent;grid-column:span 2}
.bcalc-hint{font-size:.72rem;line-height:1.6;color:#71869b;margin:13px 0 0;text-align:center}
body.bcalc-modal-active{overflow:hidden}
@media(max-width:480px){#bcalc-launch{width:58px;height:58px;right:16px;bottom:18px}#bcalc-panel{padding:14px;border-radius:17px}.bcalc-keys{gap:6px}.bcalc-keys button{min-height:45px;font-size:.84rem}}
@media(prefers-reduced-motion:reduce){#bcalc-panel{animation:none}#bcalc-launch,.bcalc-keys button{transition:none}}

@font-face {
  font-family: "Noto Math";
  src: url("../font/NotoSansMath-Regular.ttf")
       format("truetype");
  font-weight: 400;
  font-display: swap;
}
/* ==========================================================================
       DESIGN TOKENS & RESET
       ========================================================================== */
    :root {
      --blue-primary: #1565c0;
      --blue-secondary: #0d47a1;
      --blue-accent: #1e88e5;
      --blue-light: #e3f2fd;
      --blue-dark-bg: #0a192f;
      --card-bg: rgba(13, 37, 72, 0.95);

      --white: #ffffff;
      --text-main: #f0f4f8;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;

      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'Fira Code', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--blue-dark-bg);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      padding-top: 110px; /* Space for fixed banner + nav */
    }

    /* ==========================================================================
       TOP RUNNING BANNER
       ========================================================================== */
    .top-banner {
      width: 100%;
      height: 35px;
      background: linear-gradient(90deg, var(--blue-secondary), var(--blue-accent));
      color: var(--white);
      font-size: 0.88rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .top-banner span {
      display: inline-block;
      white-space: nowrap;
      padding-left: 100%;
      animation: scrollBanner 24s linear infinite;
    }

    @keyframes scrollBanner {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    /* ==========================================================================
       NAVBAR
       ========================================================================== */
    .top-navbar {
      width: 100%;
      position: fixed;
      top: 35px;
      left: 0;
      padding: 10px 24px;
      background: rgba(10, 25, 47, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(30, 136, 229, 0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.3s ease;
      z-index: 1500;
    }

    .top-navbar.scrolled {
      background: rgba(8, 20, 38, 0.98);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      padding: 8px 24px;
    }

    /* Logo & Branding */
    .top-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .top-logo img {
      display: block;
      object-fit: contain;
      background: rgba(255, 255, 255, 0.05);
    }

    .top-logo.left img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

   .top-logo.right img {
      width: 80px;
      height: 50px;
      border-radius: 6px;
      
    }

    .brand-text-group {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--white);
      white-space: nowrap;
      text-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
    }

    .brand-subtitle {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-grade {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #64b5f6;
      background: rgba(30, 136, 229, 0.15);
      border: 1px solid rgba(100, 181, 246, 0.3);
      padding: 1px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }

    .sub-dot {
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.6;
    }

    .badge-subject {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Links */
    .top-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .top-links a {
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 6px 2px;
      position: relative;
      transition: color 0.25s ease;
    }

    .top-links a::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: var(--blue-accent);
      transition: width 0.25s ease;
    }

    .top-links a:hover,
    .top-links a.active {
      color: var(--blue-light);
    }

    .top-links a:hover::after,
    .top-links a.active::after {
      width: 100%;
    }

    /* Header Right Actions */
    .top-right-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-exit-btn {
      background: linear-gradient(135deg, #d32f2f, #b71c1c);
      color: var(--white);
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 0.88rem;
      font-family: var(--font-body);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-exit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
    }

    /* Mobile Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 26px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1600;
    }

    .nav-toggle span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: var(--white);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* ==========================================================================
       EXIT CONFIRMATION MODAL
       ========================================================================== */
    .exit-modal-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 12, 26, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .exit-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .exit-modal-card {
      width: 90%;
      max-width: 380px;
      background: var(--card-bg);
      border: 1px solid rgba(41, 121, 255, 0.35);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(41, 121, 255, 0.2);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exit-modal-overlay.active .exit-modal-card {
      transform: scale(1);
    }

    .exit-modal-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
    }

    .exit-modal-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
    }

    .exit-modal-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .exit-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
      flex: 1;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 9px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-modal-cancel {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .btn-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--white);
    }

    .btn-modal-confirm {
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }

    .btn-modal-confirm:hover {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }

    /* ==========================================================================
       SITE FOOTER
       ========================================================================== */
    .site-footer {
      position: relative;
      width: 100%;
      background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, #060e1d 100%);
      border-top: 1px solid rgba(41, 121, 255, 0.25);
      color: var(--text-muted);
      margin-top: auto;
      overflow: hidden;
    }

    .footer-glow-bar {
      position: absolute;
      top: -1px;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #2979ff, #60a5fa, transparent);
      box-shadow: 0 0 15px rgba(41, 121, 255, 0.6);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 50px 24px 35px 24px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }

    .footer-heading {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 18px;
      position: relative;
      display: inline-block;
    }

    .footer-heading::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 24px;
      height: 2px;
      background: var(--blue-accent);
      border-radius: 2px;
    }

    .footer-logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-seal {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .footer-brand-title {
      display: block;
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .footer-tags {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-desc {
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 540px;
    }

    .footer-formula-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(41, 121, 255, 0.08);
      border: 1px solid rgba(41, 121, 255, 0.3);
      padding: 6px 14px;
      border-radius: 8px;
      box-shadow: inset 0 0 10px rgba(41, 121, 255, 0.05);
    }

    .footer-formula-pill code {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #93c5fd;
    }

    .footer-specs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .spec-item {
      display: flex;
      flex-direction: column;
      font-size: 0.85rem;
    }

    .spec-label {
      font-size: 0.75rem;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .spec-val {
      color: var(--text-main);
      font-weight: 500;
    }

    .footer-partner-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 6px 12px;
      border-radius: 8px;
      width: fit-content;
    }

    .footer-partner-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .footer-partner-logo span {
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
    }

    /* Footer Bottom Bar */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(4, 10, 20, 0.95);
      padding: 18px 24px;
    }

    .footer-bottom-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .copyright-text {
      font-size: 0.82rem;
      color: var(--text-subtle);
    }

    .copyright-text strong {
      color: var(--text-muted);
    }

    .back-to-top {
      color: #60a5fa;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      background: rgba(41, 121, 255, 0.1);
      border: 1px solid rgba(41, 121, 255, 0.25);
      transition: all 0.2s ease;
    }

    .back-to-top:hover {
      background: rgba(41, 121, 255, 0.2);
      color: var(--white);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       MEDIA QUERIES & RESPONSIVENESS
       ========================================================================== */
    @media screen and (max-width: 992px) {
      .nav-toggle {
        display: flex;
      }

      .nav-container {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 75px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(30, 136, 229, 0.3);
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
      }

      .nav-container.open {
        right: 0;
      }

      .top-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }

      .top-links a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        padding-top: 100px;
      }

      .top-navbar {
        padding: 8px 14px;
      }

      .brand-name {
        font-size: 0.92rem;
      }

      .badge-grade,
      .badge-subject {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
      }

      .top-logo.left img,
      .top-logo.right img {
        width: 34px;
        height: 34px;
      }

      .nav-exit-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
      }

      .footer-container {
        padding: 36px 16px 24px 16px;
      }

      .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-formula-pill {
        width: 100%;
        justify-content: center;
      }
    }
     /* ===== FULL SCREEN LESSON FRAME ===== */
    #bm21-lesson {
      --blue: #2563eb;
      --deep: #163e78;
      --cyan: #0891b2;
      --ink: #243b58;
      --muted: #637792;
      --line: #dce8f7;
      --soft: #eff6ff;
      --green: #0d9488;

      position: relative;
      left: 50%;
      width: 100vw;
      width: 100dvw;
      max-width: none;
      min-height: 100vh;
      min-height: 100dvh;
      margin-left: -50vw;
      margin-left: -50dvw;
      margin-right: 0;
      padding: 25px clamp(12px, 2.5vw, 42px) 55px;
      box-sizing: border-box;
      overflow-x: clip;
      color: var(--ink);
      font-family: "Plus Jakarta Sans",
                   "Noto Sans Myanmar", Arial, sans-serif;

      background:
        radial-gradient(circle at 92% 6%,
          rgba(37,99,235,.13), transparent 33%),
        radial-gradient(circle at 4% 60%,
          rgba(14,165,233,.07), transparent 35%),
        linear-gradient(135deg,
          #f8fbff 0%, #edf5ff 48%, #ffffff 100%);
    }

    #bm21-lesson *,
    #bm21-lesson *::before,
    #bm21-lesson *::after {
      box-sizing: border-box;
    }

    #bm21-lesson button {
      font: inherit;
      cursor: pointer;
    }

    #bm21-lesson .bm21-shell {
      width: 100%;
      max-width: none;
      margin: 0;
    }

    /* ===== HERO ===== */
    #bm21-lesson .bm21-hero {
      position: relative;
      display: grid;
      grid-template-columns: 1.35fr .65fr;
      align-items: center;
      gap: 25px;
      width: 100%;
      min-height: 280px;
      padding: clamp(24px, 4vw, 50px);
      border: 1px solid #cbdff8;
      border-radius: 22px;
      overflow: hidden;
      background:
        radial-gradient(circle at 85% 20%,
          rgba(59,130,246,.12),transparent 38%),
        linear-gradient(110deg,#fff,#edf6ff);
      box-shadow: 0 8px 35px #1e4b8510;
    }

    #bm21-lesson .bm21-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .2;
      background-image:
        linear-gradient(#9dc5f2 1px,transparent 1px),
        linear-gradient(90deg,#9dc5f2 1px,transparent 1px);
      background-size: 38px 38px;
      mask-image: linear-gradient(90deg,transparent,black);
    }

    #bm21-lesson .bm21-hero-content,
    #bm21-lesson .bm21-hero-art {
      position: relative;
      z-index: 1;
      min-width: 0;
    }

    #bm21-lesson .bm21-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 13px;
      border-radius: 30px;
      border: 1px solid #c7defb;
      background: #e3efff;
      color: #1857a9;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .5px;
    }

    #bm21-lesson .bm21-hero h2 {
      margin: 18px 0 12px;
      color: #123b74;
      font-family: Outfit,"Noto Sans Myanmar",sans-serif;
      font-size: clamp(27px,3.6vw,48px);
      line-height: 1.25;
      letter-spacing: -.7px;
    }

    #bm21-lesson .bm21-hero p {
      max-width: 700px;
      color: #536985;
      font-size: 14px;
      line-height: 1.9;
    }

    #bm21-lesson .bm21-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }

    #bm21-lesson .bm21-btn {
      border: 1px solid #c8dcf4;
      background: white;
      color: #24518d;
      padding: 11px 18px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 750;
      transition: .25s ease;
    }

    #bm21-lesson .bm21-btn:hover {
      transform: translateY(-2px);
      background: #eaf3ff;
    }

    #bm21-lesson .bm21-primary {
      background: var(--blue);
      color: white;
      border-color: var(--blue);
    }

    #bm21-lesson .bm21-primary:hover {
      background: #1d4ed8;
      color: white;
    }

    /* ===== ANIMATED MATHEMATICS ===== */
    #bm21-lesson .bm21-hero-art {
      min-height: 210px;
      display: grid;
      place-items: center;
    }

    #bm21-lesson .bm21-orbit {
      position: relative;
      display: grid;
      place-items: center;
      width: min(100%,300px);
      aspect-ratio: 1.4;
      border: 1px dashed #9bc4f5;
      border-radius: 50%;
      animation: bm21-float 5s ease-in-out infinite;
    }

    #bm21-lesson .bm21-formula-center {
      padding: 20px 25px;
      background: white;
      color: #174d98;
      border-radius: 15px;
      box-shadow: 0 12px 30px #2563eb18;
      font-size: 20px;
      font-weight: 800;
      white-space: nowrap;
    }

    #bm21-lesson .bm21-dot {
      position: absolute;
      display: grid;
      place-items: center;
      width: 35px;
      height: 35px;
      background: #dcecff;
      color: #2563eb;
      border-radius: 10px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-dot:nth-child(2) {
      top: -12px;
      left: 20%;
    }

    #bm21-lesson .bm21-dot:nth-child(3) {
      bottom: -12px;
      right: 20%;
    }

    #bm21-lesson .bm21-dot:nth-child(4) {
      right: -12px;
      top: 36%;
    }

    @keyframes bm21-float {
      0%,100% { transform:translateY(0); }
      50% { transform:translateY(-9px); }
    }

    /* ===== MAIN CONTENT CARDS ===== */
    #bm21-lesson .bm21-panel {
      width: 100%;
      max-width: none;
      margin-top: 22px;
      padding: clamp(18px,2.5vw,32px);
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 17px;
      box-shadow: 0 5px 20px #183c6808;
    }

    #bm21-lesson .bm21-heading {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 19px;
    }

    #bm21-lesson .bm21-heading-icon {
      display: grid;
      place-items: center;
      flex-shrink: 0;
      width: 42px;
      height: 42px;
      border-radius: 11px;
      background: #eaf2ff;
      color: #2563eb;
      font-size: 20px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-heading h3 {
      margin: 3px 0 0;
      color: #153c73;
      font-size: clamp(17px,2vw,23px);
      font-family: Outfit,"Noto Sans Myanmar",sans-serif;
    }

    #bm21-lesson .bm21-heading small {
      color: #8294aa;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .8px;
    }

    #bm21-lesson .bm21-desc {
      color: #586d87;
      font-size: 13px;
      line-height: 1.95;
      margin: 0 0 19px;
    }

    /* ===== EXPANSION EQUATIONS ===== */
    #bm21-lesson .bm21-expansion-list {
      display: grid;
      gap: 10px;
    }

    #bm21-lesson .bm21-expansion-row {
      display: grid;
      grid-template-columns: 65px minmax(0,1fr);
      align-items: center;
      gap: 14px;
      padding: 14px 17px;
      border-radius: 11px;
      background: #f7faff;
      border: 1px solid #e5eef9;
      transition: .25s;
    }

    #bm21-lesson .bm21-expansion-row:hover {
      background: #eff6ff;
      border-color: #a6c9fa;
      transform: translateX(3px);
    }

    #bm21-lesson .bm21-n {
      padding: 9px;
      border-radius: 8px;
      background: #e1edff;
      color: #2357a0;
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

    #bm21-lesson .bm21-math {
      min-width: 0;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 8px 2px;
      scrollbar-width: thin;
      scrollbar-color: #b8ccec transparent;
    }

    #bm21-lesson .bm21-math mjx-container[display="true"] {
      margin: .25em 0 !important;
    }

    /* ===== KEY PROPERTIES ===== */
    #bm21-lesson .bm21-properties {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      gap: 14px;
      margin-top: 20px;
    }

    #bm21-lesson .bm21-property {
      padding: 20px;
      border: 1px solid #dce9f8;
      border-radius: 13px;
      background: #fbfdff;
      transition: .25s;
    }

    #bm21-lesson .bm21-property:hover {
      transform: translateY(-3px);
      box-shadow: 0 9px 25px #2563eb12;
    }

    #bm21-lesson .bm21-symbol {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      margin-bottom: 12px;
      background: #e6f0ff;
      border-radius: 10px;
      color: #2563eb;
      font-size: 17px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-property h4 {
      margin: 0 0 9px;
      color: #214879;
      font-size: 13px;
    }

    #bm21-lesson .bm21-property p {
      margin: 0;
      color: #63768f;
      font-size: 12px;
      line-height: 1.9;
    }

    /* ===== PASCAL'S TRIANGLE ===== */
    #bm21-lesson .bm21-pascal-layout {
      display: grid;
      grid-template-columns: minmax(0,1.1fr) minmax(250px,.9fr);
      gap: 20px;
    }

    #bm21-lesson .bm21-triangle {
      padding: 23px 10px;
      border: 1px solid #d8e8fa;
      border-radius: 14px;
      background: radial-gradient(circle,#edf6ff,#f9fcff);
      overflow-x: auto;
    }

    #bm21-lesson .bm21-pascal-row {
      display: flex;
      justify-content: center;
      gap: 7px;
      margin: 9px 0;
      min-width: 310px;
    }

    #bm21-lesson .bm21-cell {
      display: grid;
      place-items: center;
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      padding: 0;
      border: 1px solid #c6dcf8;
      border-radius: 9px;
      background: white;
      color: #2354a0;
      font-size: 12px;
      font-weight: 800;
      transition: .2s;
    }

    #bm21-lesson .bm21-cell:hover,
    #bm21-lesson .bm21-cell.selected {
      background: #2563eb;
      color: white;
      border-color: #2563eb;
      transform: scale(1.07);
    }

    #bm21-lesson .bm21-pascal-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 22px;
      border: 1px solid #e0ebfa;
      border-radius: 14px;
      background: #f6faff;
    }

    #bm21-lesson .bm21-pascal-info h4 {
      margin: 0 0 12px;
      color: #174785;
      font-size: 15px;
    }

    #bm21-lesson .bm21-pascal-info p {
      color: #60738e;
      font-size: 12px;
      line-height: 1.9;
    }

    #bm21-lesson .bm21-coefficients {
      margin: 13px 0;
      padding: 16px 8px;
      border-radius: 10px;
      background: white;
      color: #2563eb;
      text-align: center;
      font-size: 16px;
      font-weight: 800;
      overflow-x: auto;
    }

    /* ===== WORKED EXAMPLES ===== */
    #bm21-lesson .bm21-examples-title {
      margin: 30px 0 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    #bm21-lesson .bm21-examples-title h3 {
      margin: 0;
      color: #173d78;
      font-family: Outfit,"Noto Sans Myanmar",sans-serif;
      font-size: 23px;
    }

    #bm21-lesson .bm21-example {
      width: 100%;
      margin-top: 14px;
      background: white;
      border: 1px solid #dce8f7;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 4px 16px #15365b08;
    }

    #bm21-lesson .bm21-example-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      padding: 21px 23px;
    }

    #bm21-lesson .bm21-example-top > div {
      min-width: 0;
      flex: 1;
    }

    #bm21-lesson .bm21-example-name {
      display: inline-flex;
      margin-bottom: 10px;
      padding: 7px 12px;
      border-radius: 7px;
      background: #e9f2ff;
      color: #2057a3;
      font-size: 11px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-example-top p {
      margin: 0;
      color: #344e70;
      font-size: 13px;
      line-height: 1.9;
    }

    #bm21-lesson .bm21-toggle {
      flex-shrink: 0;
      padding: 11px 16px;
      border: 1px solid #cbdff8;
      border-radius: 9px;
      background: #f1f7ff;
      color: #215cb2;
      font-size: 12px;
      font-weight: 800;
      transition: .2s;
    }

    #bm21-lesson .bm21-toggle:hover {
      background: #dcecff;
    }

    #bm21-lesson .bm21-question-list {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 0 23px 20px;
    }

    #bm21-lesson .bm21-question {
      padding: 12px 16px;
      background: #f7faff;
      border: 1px solid #e4edf9;
      border-radius: 9px;
      font-size: 12px;
    }

    /* ===== SOLUTIONS ===== */
    #bm21-lesson .bm21-solution {
      display: none;
      padding: 21px 23px;
      border-top: 1px solid #e2ecf9;
      background: #f9fcff;
    }

    #bm21-lesson .bm21-solution.open {
      display: block;
      animation: bm21-reveal .25s ease;
    }

    @keyframes bm21-reveal {
      from { opacity:0;transform:translateY(-5px); }
      to { opacity:1;transform:translateY(0); }
    }

    #bm21-lesson .bm21-solution-heading {
      margin-bottom: 15px;
      color: #1e5caa;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .4px;
    }

    #bm21-lesson .bm21-step {
      margin: 12px 0;
      padding: 17px;
      background: white;
      border: 1px solid #e1eaf6;
      border-left: 3px solid #60a5fa;
      border-radius: 9px;
    }

    #bm21-lesson .bm21-step-label {
      margin-bottom: 8px;
      color: #2563eb;
      font-size: 11px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-answer {
      margin-top: 14px;
      padding: 17px;
      background: #edf9f6;
      border: 1px solid #c4e9df;
      border-radius: 10px;
      color: #087a6b;
    }

    #bm21-lesson .bm21-answer-label {
      margin-bottom: 8px;
      font-size: 11px;
      font-weight: 800;
    }

    #bm21-lesson .bm21-note {
      margin: 10px 0;
      color: #61748d;
      font-size: 12px;
      line-height: 1.9;
    }

    /* ===== SUMMARY ===== */
    #bm21-lesson .bm21-summary {
      display: flex;
      align-items: center;
      gap: 17px;
      width: 100%;
      margin-top: 24px;
      padding: 23px;
      border: 1px solid #cbdff8;
      border-radius: 14px;
      background: linear-gradient(100deg,#eaf4ff,#f8fbff);
    }

    #bm21-lesson .bm21-summary-icon {
      display: grid;
      place-items: center;
      flex-shrink: 0;
      width: 46px;
      height: 46px;
      background: white;
      color: #2563eb;
      border-radius: 12px;
      font-size: 24px;
    }

    #bm21-lesson .bm21-summary strong {
      color: #1a4c90;
      font-size: 13px;
    }

    #bm21-lesson .bm21-summary p {
      margin: 5px 0 0;
      color: #627791;
      font-size: 12px;
      line-height: 1.9;
    }

    #bm21-lesson .bm21-mm {
      font-family: "Noto Sans Myanmar","Padauk",sans-serif;
      line-height: 2;
    }

    #bm21-lesson button:focus-visible {
      outline: 3px solid #60a5fa;
      outline-offset: 3px;
    }

    /* ===== RESPONSIVE ===== */
    @media(max-width:900px) {
      #bm21-lesson .bm21-hero {
        grid-template-columns: 1fr;
      }

      #bm21-lesson .bm21-hero-art {
        min-height: 155px;
      }

      #bm21-lesson .bm21-properties {
        grid-template-columns: repeat(2,minmax(0,1fr));
      }

      #bm21-lesson .bm21-pascal-layout {
        grid-template-columns: 1fr;
      }
    }

    @media(max-width:580px) {
      #bm21-lesson {
        padding: 12px 10px 32px;
      }

      #bm21-lesson .bm21-hero {
        padding: 23px 18px;
      }

      #bm21-lesson .bm21-hero-art {
        display: none;
      }

      #bm21-lesson .bm21-panel {
        padding: 19px 14px;
      }

      #bm21-lesson .bm21-properties {
        grid-template-columns: 1fr;
      }

      #bm21-lesson .bm21-expansion-row {
        grid-template-columns: 1fr;
        gap: 5px;
      }

      #bm21-lesson .bm21-n {
        width: max-content;
      }

      #bm21-lesson .bm21-example-top {
        align-items: flex-start;
      }

      #bm21-lesson .bm21-toggle {
        width: 100%;
      }

      #bm21-lesson .bm21-solution {
        padding: 15px 12px;
      }

      #bm21-lesson .bm21-step {
        padding: 12px;
      }

      #bm21-lesson .bm21-cell {
        width: 33px;
        height: 33px;
      }

      #bm21-lesson .bm21-summary {
        align-items: flex-start;
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #bm21-lesson *,
      #bm21-lesson *::before,
      #bm21-lesson *::after {
        animation: none !important;
        transition: none !important;
      }
    }